package cn.liye.pingfen.service.impl;

import cn.liye.pingfen.mapper.CityMapper;
import cn.liye.pingfen.pojo.dto.CityDTO;
import cn.liye.pingfen.pojo.dto.ProvinceDTO;
import cn.liye.pingfen.pojo.vo.SysRegionVO;
import cn.liye.pingfen.service.ICityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CityService implements ICityService {
    @Autowired
    CityMapper cityMapper;

    @Override
    public List<ProvinceDTO> selectCityInfo() {
        return cityMapper.selectCityInfo();
    }

    @Override
    public List<ProvinceDTO> selectPro() {
        return cityMapper.selectPro();
    }

    @Override
    public List<CityDTO> selectCity(String regionParentId) {
        return cityMapper.selectCity(regionParentId);
    }

}
